package com.cdtye.itps.cms.dao.plan.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdtye.common.webcore.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 详细计划表
 * @author
 * @date 2022-01-10
 */
@ApiModel("详细计划表")
@Data
@Accessors(chain = true)
@TableName("JCJC_PLAN_DETAIL")
public class JcjcPlanDetail {
    @ApiModelProperty("ID")
    @TableId(
            type = IdType.UUID
    )
    private String id;

    @ApiModelProperty(value = "计划编码(唯一)")
    private String planCode;

    @ApiModelProperty(value = "计划状态(10:审批通过,20:已发布,30:已签收,40:已执行,50:计划取消,70:已上传,80:已分析)")
    private String status;

    @ApiModelProperty(value = "单位id")
    private String deptId;

    @ApiModelProperty(value = "c类型id--SYS_DICTIONARY.DT_ID=JCJCTYPE,DICTIONARY_ID")
    private String ctypeId;

    @ApiModelProperty(value = "编制人")
    private String preparedBy;

    @ApiModelProperty(value = "编制时间")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date preparedDate;

    @ApiModelProperty(value = "编制单位")
    private String preparedDeptId;

    @ApiModelProperty(value = "计划检测日期")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date planDate;

    @ApiModelProperty(value = "线路id")
    private String lineId;

    @ApiModelProperty(value = "行别id")
    private String directionId;

    @ApiModelProperty(value = "计划检测里程")
    private Double planMileage;

    @ApiModelProperty(value = "计划类型")
    private String planType;

    @ApiModelProperty(value = "计划执行部门")
    private String planDepartmentId;

    @ApiModelProperty(value = "检测设备")
    private String equipment;

    @ApiModelProperty(value = "计划执行人员")
    private String planExecutor;

    @ApiModelProperty(value = "计划车次")
    private String planTrainNum;

    @ApiModelProperty(value = "附件")
    private String enclosure;

    @ApiModelProperty(value = "编制备注")
    private String remark;

    @ApiModelProperty(value = "审批人")
    private String approve;

    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date approvelTime;

    @ApiModelProperty(value = "审批结论")
    private String conclusion;

    @ApiModelProperty(value = "审批意见")
    private String opinion;

    @ApiModelProperty(value = "实际执行部门")
    private String actualDepartmentId;

    @ApiModelProperty(value = "实际执行日期")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date actualDate;

    @ApiModelProperty(value = "实际检测人员")
    private String actualTester;

    @ApiModelProperty(value = "实际车次")
    private String actualTraubNum;

    @ApiModelProperty(value = "实际检测里程")
    private Double actualMileage;

    @ApiModelProperty(value = "实际备注")
    private String actualRemark;

    @ApiModelProperty(value = "完成度")
    private Double completeRate;

    @ApiModelProperty(value = "删除标记 Y：是 N：否")
    private String delFlag;

    @ApiModelProperty(value = "铁路类型")
    private String railtype;

    @ApiModelProperty(value = "计划起站id")
    private String lineSitePlanBeginId;

    @ApiModelProperty(value = "计划止站id")
    private String lineSitePlanEndId;

    @ApiModelProperty(value = "实际起站id")
    private String lineSiteActualBeginId;

    @ApiModelProperty(value = "实际止站id")
    private String lineSiteActualEndId;

    @ApiModelProperty(value = "取消原因")
    private String cancelContent;

    @ApiModelProperty(value = "取消时间")
    private String cancelDate;

    @ApiModelProperty(value = "取消人")
    private String cancelUser;

    @ApiModelProperty(value = "厂商编码")
    private String menufacturerCode;

    @ApiModelProperty(value = "单位编码")
    private String unitDeptCode;

    @ApiModelProperty(value = "原始数据计划起站")
    private String planBegin;

    @ApiModelProperty(value = "原始数据计划止站")
    private String planEnd;

    @ApiModelProperty(value = "原始数据实际起站")
    private String actualBegin;

    @ApiModelProperty(value = "原始数据实际止站")
    private String actualEnd;

    @ApiModelProperty(value = "厂商计划ID")
    private String extPlanId;

    @ApiModelProperty(value = "计划执行日期")
    private Date planExecutDate;

    @ApiModelProperty("创建时间")
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createDatetime;
    @ApiModelProperty("创建人")
    private String createBy;
    @ApiModelProperty("修改时间")
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateDatetime;
    @ApiModelProperty("修改人")
    private String updateBy;
}
